package com.ssy.lingxi.pay.api.common.allInPay;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * @author lqa
 * @version 2.0.0
 * @date 2021/12/2
 */
public enum TradeTypeEnum {
    RECHARGE(1, "充值", "整型"),
    TRANSFER(2, "转账", "整型"),
    WITHDRAW(3, "提现", "整型"),
    REFUND(4, "退款", "整型"),
    ACCOUNTS_RECEIVABLE_CONFIRMATION(5, "应收账款确认", "整型"),
    CASHIER_TREASURE_REFUND_FUND_ALLOCATION(6, "收银宝退款资金调拨", "整型"),
    CONFIRMATION_OF_ACCOUNTS_RECEIVABLE_HANDLING_FEE(7, "应收账款手续费确认", "整型")
    ;


    private Integer code;
    private String type;

    TradeTypeEnum(Integer code, String name, String type) {
        this.code = code;
        this.type = type;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return LanguageHolder.getName(this.getClass(),this.code);
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
